<template>
  <router-view />
</template>

<script>
 import utils from "./utils/utils";
  import { onMounted } from "vue";
  export default{
    name: "app",
    components: {},
    setup() {
      onMounted(() => { 
          
    //方式3（设置顶层div的class类名）
    let theme= utils.getStorage("theme");
    if (typeof(theme) == "undefined"||theme==''||theme==null) { 
     
        document.getElementById("app").setAttribute("class", "Black");
    }else{
      document.getElementById("app").setAttribute("class", theme);
    }

      return {};
    })
    }
}
</script>

<style lang="scss">
@import './assets/style/reset.css';
@import './assets/style/index.scss';
</style>
